TextureId Class

Description

TextureId encapsulates a texture object in rendering API.

For OpenGL/OpenGLES, getInt and fromInt shall be used. For Direct3D, getPointer and fromPointer shall be used.

getInt

Gets ID of an OpenGL/OpenGLES texture object.

C

int easyar_TextureId_getInt(easyar_TextureId * This)

C++17

int getInt()

C++03(Deprecated)

int getInt()

Java

public int getInt()

Kotlin

fun getInt(): Int

Objective-C

- (int)getInt

Swift

public func getInt() -> Int32

C#

public virtual int getInt()

getPointer

Gets pointer of a Direct3D texture object.

C

void * easyar_TextureId_getPointer(easyar_TextureId * This)

C++17

void * getPointer()

C++03(Deprecated)

void * getPointer()

Java

public long getPointer()

Kotlin

fun getPointer(): Long

Objective-C

- (void *)getPointer

Swift

public func getPointer() -> OpaquePointer?

C#

public virtual IntPtr getPointer()

fromInt

Creates from ID of an OpenGL/OpenGLES texture object.

C

void easyar_TextureId_fromInt(int _value, easyar_TextureId * * Return)

C++17

static std::shared_ptr<TextureId> fromInt(int _value)

C++03(Deprecated)

static void fromInt(int _value, TextureId * * Return)

Java

public static @Nonnull TextureId fromInt(int value)

Kotlin

companion object fun fromInt(value: Int): TextureId

Objective-C

+ (easyar_TextureId *)fromInt:(int)_value

Swift

public static func fromInt(_ value: Int32) -> TextureId

C#

public static TextureId fromInt(int @value)

fromPointer

Creates from pointer of a Direct3D texture object.

C

void easyar_TextureId_fromPointer(void * ptr, easyar_TextureId * * Return)

C++17

static std::shared_ptr<TextureId> fromPointer(void * ptr)

C++03(Deprecated)

static void fromPointer(void * ptr, TextureId * * Return)

Java

public static @Nonnull TextureId fromPointer(long ptr)

Kotlin

companion object fun fromPointer(ptr: Long): TextureId

Objective-C

+ (easyar_TextureId *)fromPointer:(void *)ptr

Swift

public static func fromPointer(_ ptr: OpaquePointer?) -> TextureId

C#

public static TextureId fromPointer(IntPtr ptr)